using System;
using System.Collections.Generic;
using System.Text;
using Belmost4PDA.Constants;
using Belmost4PDA.Fasade;

namespace Belmost4PDA.Logic
{
    public class CmdInsert:AbstractCommand
    {
        public DataProcesser processer = new DataProcesser(DataProcesser.Action.Insert);
        public override void Execute(ref AbstractState currentState, ref AbstractControl TopControl,
                                     ref List<AbstractMapper> AllMappers)
        {
            processer.SetEmpty(AllMappers);
            StateEdit state=new StateEdit();
            state.IsInserting = true;
            InterfaceDispatcher.SetState(state);

  }

        public override CommandID GetID()
        {
            return CommandID.Insert;
        }
    }
}
